home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Misc / RZToDoList / Source / GraphicImage.h < prev    next >
Encoding:
Text File  |  1995-06-12  |  953 b   |  37 lines

  1. /* 
  2.  * GraphicImage
  3.  *
  4.  * An object for embedding images in a Text object
  5.  *
  6.  * You may freely copy, distribute and reuse the code in this example.
  7.  * This code is provided AS IS without warranty of any kind, expressed 
  8.  * or implied, as to its fitness for any particular use.
  9.  *
  10.  * Copyright 1995 Ralph Zazula (rzazula@next.com).  All Rights Reserved.
  11.  *
  12.  */
  13.  
  14. #import <objc/Object.h>
  15. #import <appkit/graphics.h>
  16. #import <dpsclient/event.h>
  17.  
  18. @interface GraphicImage:Object
  19. {
  20.     id        image;
  21.     BOOL    highlighted;
  22. }
  23.  
  24. /* instance methods */
  25. - initForImage:anImage;
  26. - free;
  27. - calcCellSize:(NXSize *)theSize;
  28. - highlight:(const NXRect *)cellFrame inView:controlView lit:(BOOL)flag;
  29. - drawSelf:(const NXRect *)cellFrame inView:controlView;
  30. - trackMouse:(NXEvent *)theEvent inRect:(const NXRect *)cellFrame
  31.   ofView:controlView;
  32. - readRichText:(NXStream *)stream forView:view;
  33. - writeRichText:(NXStream *)stream forView:view;
  34. - performDoubleClickAction;
  35.  
  36. @end
  37.